﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="worklog_view.aspx.cs" Inherits="HY.WEB.OA.worklogview" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
  <form id="form1" runat="server">
    <div >
    
        <ext:PageManager ID="PageManager1" runat="server" />
        <ext:HiddenField ID="hidstype" runat="server"></ext:HiddenField>
<ext:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
ShowBorder="false" EnableBackgroundColor="true">
<Rows>
<ext:FormRow ID="FormRow1" runat="server">
<Items>

<ext:DropDownList ID="ddlfiled" runat="server" Label="查询字段"  >
</ext:DropDownList>

<ext:DropDownList ID="ddlwhere" runat="server" Label="查询条件"  >
</ext:DropDownList>

<ext:TwinTriggerBox ID="txt" runat="server" ShowLabel="false" EmptyText="关键字"
 Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="ttbSearchMessage_Trigger2Click"
　OnTrigger1Click="ttbSearchMessage_Trigger1Click">
</ext:TwinTriggerBox>

    <ext:Button ID="btnSearch" Icon="Zoom" runat="server"  Text="高级查询" >
    </ext:Button>
</Items>
</ext:FormRow>

</Rows>
</ext:Form>


            <ext:Grid ID="Grid1" Title="工作日志"     PageSize="15" ShowBorder="true" ShowHeader="true" AutoHeight="true" AllowPaging="true"
        runat="server" EnableCheckBoxSelect="True"  DataKeyNames="sid"
        OnPageIndexChange="Grid1_PageIndexChange" EnableRowNumber="True" OnSort="Grid1_Sort" AnchorValue="100% -36px">
         <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                  <ext:Button ID="Button1" Text="工作日志" Icon="DateGo" OnClick="btndd_Click" runat="server">
                    </ext:Button>
                       <ext:Button ID="Button2" Text="周总结" Icon="Date" OnClick="btnww_Click" runat="server">
                    </ext:Button>
                       <ext:Button ID="Button3" Text="月总结" Icon="DateDelete" OnClick="btnmm_Click" runat="server">
                    </ext:Button>
                       <ext:Button ID="Button4" Text="季总结" Icon="DateEdit" OnClick="btnqq_Click" runat="server">
                    </ext:Button>
                    <ext:Button ID="Button5" Text="年总结" Icon="DateMagnify" OnClick="btnyy_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
   
        <Columns>
            <ext:TemplateField Width="60px"  HeaderText="编号" >
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                </ItemTemplate>
            </ext:TemplateField>
               <ext:TemplateField  Width="100px"   HeaderText="日志类型" SortField="adsubtype">
                <ItemTemplate>
                <%#getlog(Eval("adsubtype").ToString())%>            
                </ItemTemplate>
             </ext:TemplateField>

            <ext:BoundField Width="100px" DataField="adtime" DataFormatString="{0:yyyy-MM-dd}" HeaderText="填写日期" />
          
            <ext:BoundField Width="100px" DataField="adperson" DataFormatString="{0}" SortField="user_name" HeaderText="员工" />
          
            <ext:HyperLinkField Width="100px" DataToolTipField="adtitle" DataTextField="adtitle"  SortField="adtitle" HeaderText="标题" 
            DataNavigateUrlFields="sid"
                 DataNavigateUrlFormatString="view.aspx?sid={0}"
                DataNavigateUrlFieldsEncode="true"  Target="_self" ExpandUnusedSpace="True" />
          
                     <ext:TemplateField Width="80px"  HeaderText="附件" >
                <ItemTemplate>
            <ext:HyperLink  ID="HyperLink1" runat="server" Label="Label" NavigateUrl='<%#Eval("adfile") %>' Target="_blank"    Text="下载">
                    </ext:HyperLink>
                        </ItemTemplate>
            </ext:TemplateField>
                          
        </Columns>
    </ext:Grid>
           <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="480px">
    </ext:Window>
    </div>
    </form>
</body>
</html>
